﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace lcmyjobs.Web.admininfo
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["adminName"] != null)
                {
                    if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                    {
                        strid = Request.Params["id"];
                        int aid = (Convert.ToInt32(strid));
                        ShowInfo(aid);
                    }
                }
                else
                {
                    Maticsoft.Common.MessageBox.ResponseScript(this, "alert('请先登陆！');top.location.href='../adminlogin2.aspx'");
                }

            }
        }

        private void ShowInfo(int aid)
        {
            lcmyjobs.BLL.admininfo bll = new lcmyjobs.BLL.admininfo();
            lcmyjobs.Model.admininfo model = bll.GetModel(aid);
            this.lblaid.Text = model.truename;
            this.lblaname.Text = model.aname;


            this.lblatid.Text = new lcmyjobs.BLL.admin_type().GetModel(model.atid).atname;

        }


    }
}
